package com.linkvin.ec.hcs.dao.model.mdm;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 基础数据表_仓库表
 * </p>
 *
 * @author qichao
 * @since 2017-12-19
 */
@TableName("mdm_warehouse")
public class Warehouse extends Model<Warehouse> {

    private static final long serialVersionUID = 1L;

    /**
     * 仓库ID
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 仓库code
     */
	private String code;
    /**
     * 仓库名称
     */
	private String name;
    /**
     * 排序序号
     */
	private Integer sequence;
    /**
     * 仓库类型 10:整车仓库 20 配件类 30 耗材类 40 用品类 50 固定资产类 
     */
	private String type;
    /**
     * 仓库属性 10：简易库 20：标准库
     */
	private String style;
    /**
     * 仓库地址
     */
	private String address;
    /**
     * 是否自动分配库位 是：Y 否：N
     */
	@TableField("is_auto")
	private Integer isAuto;
    /**
     * 仓库备注
     */
	private String remark;
    /**
     * 所属机构
     */
	@TableField("org_id")
	private Integer orgId;
    /**
     * 仓库主管
     */
	@TableField("user_id")
	private Integer userId;
    /**
     * 是否可用
     */
	@TableField("is_enable")
	private Integer isEnable;
    /**
     * 创建时间
     */
	@TableField("gmt_create")
	private Date gmtCreate;
    /**
     * 更新时间
     */
	@TableField("gmt_update")
	private Date gmtUpdate;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getSequence() {
		return sequence;
	}

	public void setSequence(Integer sequence) {
		this.sequence = sequence;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getStyle() {
		return style;
	}

	public void setStyle(String style) {
		this.style = style;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Integer getIsAuto() {
		return isAuto;
	}

	public void setIsAuto(Integer isAuto) {
		this.isAuto = isAuto;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getOrgId() {
		return orgId;
	}

	public void setOrgId(Integer orgId) {
		this.orgId = orgId;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getIsEnable() {
		return isEnable;
	}

	public void setIsEnable(Integer isEnable) {
		this.isEnable = isEnable;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Date getGmtUpdate() {
		return gmtUpdate;
	}

	public void setGmtUpdate(Date gmtUpdate) {
		this.gmtUpdate = gmtUpdate;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Warehouse{" +
			", id=" + id +
			", code=" + code +
			", name=" + name +
			", sequence=" + sequence +
			", type=" + type +
			", style=" + style +
			", address=" + address +
			", isAuto=" + isAuto +
			", remark=" + remark +
			", orgId=" + orgId +
			", userId=" + userId +
			", isEnable=" + isEnable +
			", gmtCreate=" + gmtCreate +
			", gmtUpdate=" + gmtUpdate +
			"}";
	}
}
